﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>

    <title>My JSP 'all.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>
    <style type="text/css">
       *{
        font-size: 12px;
       }
    </style>


  </head>
  
  <body>
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 操作信息管理</strong></div>
    <div class="padding border-bottom">
        <input type="hidden" th:value="${xid}" id="xids">
    </div>
    <table class="table table-hover text-center" id="table-money">
      <tr>
        <th>已卖出的座位</th>
        <th>票价（￥）</th>
        <th>小计（￥）</th>
      </tr>


    </table>
  </div>
</body>
<script>
    $(function(){
        $.get('../gson/saleGson2',{xid:$('#xids').val()},function(data){
            var get_gson = '';
            var get_index_value = 0;
            $(data).each(function(i,n){
                get_gson += '<tr>' +
                    '<td>'+n.mzw+'</td>' +
                    '<td>'+n.modelBroad.xmoney+'</td>' +
                    '<td>'+n.modelBroad.xmoney+'</td>' +
                    '</tr>';
                get_index_value +=n.modelBroad.xmoney;
            });
            get_gson += '<tr>\n' +
                '      \t<td colspan="7" align="center">\n' +
                '      \t\t<h4>合计总收益：'+get_index_value+'</h4>\n' +
                '      \t</td>\n' +
                '      </tr>\n' +
                '       <tr>\n' +
                '       \t\t<td colspan="8" align="center">\n' +
                '\t\t\t\t<a href="moneyControllerShowBroad"><button type="button"  class="button border-green" id="checkall"><span class="icon-check"></span> 返回上一级</button></a>\n' +
                '\t\t\t</td>\n' +
                '       </tr>\n' +
                '      ';
            $('#table-money tbody').append(get_gson);
        });
    });
</script>

</html>
  